Back

Slide Show 006

 
 
 

This is a nice slide show were a picture dissolves and another appears.  The images are also link to a URL.

The image information is highlighted in yellow and the link info in pink.  The document info is in mint. Speed in green.  (3000 = 3 seconds)

 

Script instructions for <HEAD></HEAD> tags

<script language="JavaScript">

var slidespeed=3000

var slideimages=new Array("images/bh1a.jpg","images/bh2a.jpg","images/bh3a.jpg")

var slidelinks=new Array("http://www.#","http://www.#","http://www.#")

var newwindow=1
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->
</script>
 

Script instructions for <BODY> of the HTML Document

<a href="javascript:gotoshow()"><img src="images/bh1a.jpg" name="slide" border=0 style="filter:blendTrans(duration=3)" width=125 height=200></a>

<script language="JavaScript">
<!--

var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()

//-->
</script>
 

 

Paste script between the <HEAD></HEAD> tags.


Paste script where needed in the body of the HTML Document.


© Copyright 2009 Ashesh